Update mkicondoc.
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 1 Feb 2013 18:26:52 +0000 (18:26 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 1 Feb 2013 18:26:52 +0000 (18:26 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4276 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/mkicondoc.cc

index 75557ee298c8dcedfe65b1cbe067ad793f1c7a27..7032c03dfc759149e4f26884eb3c93c43da70676 100644 (file)
@@ -1,14 +1,19 @@
+// Display all the Garmin icons that we know about so we can copy/paste
+// into our doc, http://www.gpsbabel.org/htmldoc-development/GarminIcons.html
+
+
 #include <stdarg.h>
 #include <stdio.h>
-#include "fatal.c"
-#include "util.c"
-#include "cet.c"
-#define VERSION "1"
-#include "globals.c"
+#include "fatal.cc"
+#include "util.cc"
+#include "cet.cc"
+// #define VERSION "1"
+#include "globals.cc"
+#include "jeeps/gpsmath.cc"
 
 
 
-tbl_ent(int n, ...)
+void tbl_ent(int n, ...)
 {
   int i;
   char* t;
@@ -30,15 +35,15 @@ tbl_ent(int n, ...)
 
 }
 
-#include "garmin_tables.c"
-sort_garmin(const void* a, const void* b)
+#include "garmin_tables.cc"
+int sort_garmin(const void* a, const void* b)
 {
-  const icon_mapping_t* ap = a;
-  const icon_mapping_t* bp = b;
+  const icon_mapping_t* ap = (const icon_mapping_t*) a;
+  const icon_mapping_t* bp = (const icon_mapping_t*) b;
   return (case_ignore_strcmp((ap)->icon, (bp)->icon));
 }
 
-garmin()
+void garmin()
 {
   icon_mapping_t* i;
   int n = 0;
@@ -61,7 +66,8 @@ garmin()
   }
 }
 
-main()
+int main()
 {
   garmin();
+  return 0;
 }